/* 专注时钟页面布局 */
.focus-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* 计时器部分 */
.timer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-header {
    width: 100%;
    margin-bottom: 2rem;
}

.timer-mode {
    display: flex;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: var(--border-radius-xl);
    padding: 0.5rem;
}

.mode-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    background: transparent;
    color: var(--text-color);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.mode-btn.active {
    background-color: var(--card-background);
    box-shadow: var(--shadow-sm);
}

.mode-btn[data-mode="focus"].active {
    color: var(--focus-color);
}

.mode-btn[data-mode="short-break"].active {
    color: var(--short-break-color);
}

.mode-btn[data-mode="long-break"].active {
    color: var(--long-break-color);
}

/* 计时器显示 */
.timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.timer-circle {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.timer-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-background {
    fill: none;
    stroke: var(--primary-light);
    stroke-width: 4;
}

.timer-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s linear;
}

.timer-time {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.control-btn {
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed);
}

#start-btn {
    background-color: var(--primary-color);
    color: white;
}

#start-btn:hover:not(:disabled) {
    background-color: var(--primary-dark);
}

#pause-btn, #reset-btn {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

#pause-btn:hover:not(:disabled), #reset-btn:hover:not(:disabled) {
    background-color: var(--border-color);
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.current-goal, .daily-stats, .recent-activities {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.goal-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.goal-selector select {
    flex: 1;
}

.btn-add-goal {
    padding: 0.75rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--border-radius-md);
    font-weight: 500;
}

.goal-progress {
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 8px;
    background-color: var(--primary-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: right;
}

.goal-time {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* 今日概览 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* 最近活动 */
.activity-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.activity-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-info {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.activity-time {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .focus-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .recent-activities {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .timer-circle {
        width: 280px;
        height: 280px;
    }
    
    .timer-time {
        font-size: 3.5rem;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .recent-activities {
        grid-column: span 1;
    }
    
    .control-btn {
        padding: 0.75rem 1.5rem;
    }
} 